import tom.jiafei.SquareEquation;
public class SunRise {
    public static void main(String[] args) {
        SquareEquation SE = new SquareEquation();
        System.out.println("是一元2次方程");
        double result = SE.calculate(4.0,-5.0,1.0);
        double res1 = SE.result1(4.0,-5.0,1.0,result);
        double res2 = SE.result2(4.0,-5.0,1.0,result);
        System.out.printf("方程的根:%.6f,%.6f",res1,res2);
        System.out.println("是一元2次方程");
        result = SE.calculate(4.0,4.0,1.0);
        res1 = SE.result1(4.0,4.0,1.0,result);
        res2 = SE.result2(4.0,4.0,1.0,result);
        System.out.printf("方程的根:%.6f,%.6f",res1,res2);

    }
}